#include "process.h"
#include<stdio.h>
#include<unistd.h>
double target_total_size = 1024.0;
double speed = 1.0;


void Download(double size,double split)
{
	double current = 0.0;

	printf("下载中：\n");
	while(current <= size)
	{
		Flushprocess(size,current);
		usleep(1000);

		if(current>=size) break;
		current += split;
	}
	printf("\n");

}


int main()
{
	Download(target_total_size,speed);
	//process();

	return 0;
}
